package com.five.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("gxa_category")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Category implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("category_name")
    private String CategoryName;
    @TableField("create_time")
    private LocalDateTime createTime = LocalDateTime.now();
    @TableField("update_time")
    private LocalDateTime updateTime;
    @TableField("parent_id")
    private Long parentId;
}
